<?php


namespace app\model;

class ArticleClass extends Base
{
    protected $autoWriteTimestamp = true;
    protected $resultSetType = 'collection';
    protected $updateTime = 'updateTime';
    protected $createTime = 'addTime';

    public function getStatusTextAttr($value,$data){
        $status = ['0' => '启用','1' => '未启用'];
        return $status[$data['status']];
    }


}
